﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using DXTools.UI.Core.View;

namespace DXTools.UI.Shell
{
    public partial class MainShellView : ViewBase
    {
        public MainShellView(MainShellViewModel viewModel)
            :base(viewModel)
        {
            InitializeComponent();
            App.Current.Host.Content.Resized += new EventHandler(this.Content_Resized);
        }

        private void Content_Resized(object sender, EventArgs e)
        {
            this.TabControlBodyRegion.Width = App.Current.Host.Content.ActualWidth - 5;
            this.TabControlBodyRegion.Height = App.Current.Host.Content.ActualHeight - 118;

        }
    }
}
